package com.xiang.sql.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 定时任务 数据实体
 * 
 * @author mac-xiang
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`task`", autoResultMap = true)
@ApiModel(value = "定时任务 对象", description = "定时任务")
public class Task implements Serializable {

  private static final long serialVersionUID = 1L;
  /** 主键ID */
  @TableId(value = "id", type = IdType.ASSIGN_ID)
  public String id;

  /** 执行时间 */
  @TableField(value = "`time`")
  public Long time;

  /** 类型 */
  @TableField(value = "`type`", fill = FieldFill.INSERT)
  public String type;

  /** 奖池内容 */
  @TableField(value = "`content`", fill = FieldFill.INSERT)
  public String content;

  public Task() {
  }
}